﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zatify.Domain.Data
{
    public enum AlertMode
    {
        AlertByVibration = 1,
        AlertByTone = 2,
        DoNotAlert = 3
    }

    public partial class UserSettings
    {
        public AlertMode AlertMode
        {
            get
            {
                switch (this.Value)
                {
                    case "AlertByTone":
                        return AlertMode.AlertByTone;
                    case "AlertByVibration":
                        return AlertMode.AlertByVibration;
                    case "DoNotAlert":
                        return AlertMode.DoNotAlert;
                    default: return AlertMode.DoNotAlert;
                }
            }
        }
    }
}
